package github.flandre.examplemod.core.init.event;

import github.flandre.examplemod.common.entity.ExampleEntity;
import github.flandre.examplemod.core.init.EntityInit;
import net.minecraftforge.event.entity.EntityAttributeCreationEvent;
import net.minecraftforge.eventbus.api.SubscribeEvent;
import net.minecraftforge.fml.common.Mod;

//创建实体属性 生命和攻击

@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
public class AttributesSetEvent {
    @SubscribeEvent
    public static void propertyOverrideRegistry(EntityAttributeCreationEvent event){
        event.put(
                EntityInit.EXAMPLE_ENTITY.get(),
                ExampleEntity.func_234192_eI_().create()
        );
    }
}
